package com.resou.reader.bookstore.category.view;

import com.resou.reader.api.entry.BookCategoryBean;
import com.resou.reader.api.entry.BookCategoryData;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.resou.reader.base.v.IView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

/**
 * Created by ${Garrett} on 2018/9/29.
 * Contact me krouky@outlook.com
 */
public interface ISubCategoryContract {

    interface ISubCategoryView extends BaseView {
        /**
         * View层显示数据接口
         *
         * @param list
         */
        void showCateGoryData(List<BookCategoryBean> list);

        SmartRefreshLayout getSmartRefreshLayout();
    }

    interface ISubCategoryPresenter extends BasePresenter {
        /**
         * 分类查询书籍列表searchbycategory
         *
         * @param categoryId   二级分类Id
         * @param secId        三级分类
         * @param totalWord    字数
         * @param readingNum   最热
         * @param serialStatus 完结穿3  连载 1
         * @param page
         * @return
         */
        void quearGateGoryData(String categoryId, String secId, String totalWord, String readingNum, String serialStatus, int page);
    }
}
